From 58fcd09cffb2caf94d08508cecd81952b9737bdb Mon Sep 17 00:00:00 2001 From: Alexander Mikhaylenko Date: Mon, 11 May 2020 19:47:58 +0500 Subject: [PATCH] tests: Fix testtreeelistmodel Stop using GtkContainer API for GtkListBoxRow and GtkToggleButton. --- tests/testtreelistmodel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/testtreelistmodel.c b/tests/testtreelistmodel.c index b267fded4c..303951d077 100644 --- a/tests/testtreelistmodel.c +++ b/tests/testtreelistmodel.c @@ -175,7 +175,7 @@ create_widget_for_model (gpointer item, gtk_widget_set_vexpand (row, TRUE); box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4); - gtk_container_add (GTK_CONTAINER (row), box); + gtk_list_box_row_set_child (GTK_LIST_BOX_ROW (row), box); depth = gtk_tree_list_row_get_depth (item); if (depth > 0) @@ -198,7 +198,7 @@ create_widget_for_model (gpointer item, gtk_container_add (GTK_CONTAINER (child), title); arrow = g_object_new (GTK_TYPE_SPINNER, "css-name", "arrow", NULL); - gtk_container_add (GTK_CONTAINER (title), arrow); + gtk_button_set_child (GTK_BUTTON (title), arrow); } else { -- 2.30.2